package com.atguigu.srb.sms.feign;

import com.atguigu.srb.base.response.R;
import com.atguigu.srb.sms.feign.fallback.CoreFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "srb-core",fallback = CoreFeignClientFallback.class)
public interface CoreFeignClient {
    @GetMapping("/api/core/userInfo/isRegisted/{mobile}")
    public R isRegisted(@PathVariable("mobile")String mobile);

}
